package com.bringway.p2p.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bringway.p2p.dao.ComNewsDao;
import com.bringway.p2p.dao.SysDao;
import com.bringway.p2p.service.ComNewsService;
import com.bringway.p2p.service.SysService;

import net.sf.json.JSONObject;
@Service
public class ComNewsServiceImpl implements ComNewsService{
	@Autowired
	private ComNewsDao comNewsDao;

	@Override
	public List<Map<String, Object>> queryComNewsList(JSONObject params) {
		return comNewsDao.queryComNewsList(params);
	}

	@Override
	public int getComNewsCount(JSONObject params) {
		return comNewsDao.getComNewsCount(params);
	}

	@Override
	public boolean insertComNews(Map<String, Object> paramMap) {
		return comNewsDao.insertComNews(paramMap)>0;
	}

	@Override
	public boolean updateComNews(Map<String, Object> paramMap) {
		return comNewsDao.updateComNews(paramMap)>0;
	}

	@Override
	public boolean publicComNews(Map<String, Object> paramMap) {
		return comNewsDao.publicComNews(paramMap)>0?true:false;
	}

	
}
